/*
 * @Author: 李晓丹-=== 
 * @Date: 2021-03-08 08:41:12 
 * @Last Modified by: 李晓丹
 * @Last Modified time: 2021-03-08 10:13:15
 */

import {request} from 'umi';
import {IAddQuestion} from '@/interface/question';

//获取考试类型
export const getExamType  = () => {
    return request('/exam/examType',{method:'get'})
}

//获取课程类型
export const getSubject  = () => {
    return request('/exam/subject',{method:'get'})
}

//获取试题类型
export const getQuestionsType  = () => {
    return request('/exam/getQuestionsType',{method:'get'})
}
 
//添加试题
export const addQuestion = (data:IAddQuestion) => {
    return request('/exam/questions',{method:'post',data})
}